#5
AB = float(input())
CD = float(input())
R = ((AB/2)**2 + CD**2)/(CD*2)
print(f"{R:.2f}")